package com.dianping.cat.alarm;

import java.util.Date;
import org.unidal.dal.jdbc.DataObject;





















public class ServerAlarmRule
  extends DataObject
{
  private int m_id;
  private String m_category;
  private String m_endPoint;
  private String m_measurement;
  private String m_tags;
  private String m_content;
  private String m_type;
  private String m_creator;
  private Date m_creationDate;
  private Date m_updatetime;
  private int m_keyId;

  public void afterLoad() {
/*  42 */     this.m_keyId = this.m_id;
/*  43 */     clearUsage();
  }


/*  47 */   public String getCategory() { return this.m_category; }



/*  51 */   public String getContent() { return this.m_content; }



/*  55 */   public Date getCreationDate() { return this.m_creationDate; }



/*  59 */   public String getCreator() { return this.m_creator; }



/*  63 */   public String getEndPoint() { return this.m_endPoint; }



/*  67 */   public int getId() { return this.m_id; }



/*  71 */   public int getKeyId() { return this.m_keyId; }



/*  75 */   public String getMeasurement() { return this.m_measurement; }



/*  79 */   public String getTags() { return this.m_tags; }



/*  83 */   public String getType() { return this.m_type; }



/*  87 */   public Date getUpdatetime() { return this.m_updatetime; }


  public ServerAlarmRule setCategory(String category) {
/*  91 */     setFieldUsed(ServerAlarmRuleEntity.CATEGORY, true);
/*  92 */     this.m_category = category;
/*  93 */     return this;
  }

  public ServerAlarmRule setContent(String content) {
/*  97 */     setFieldUsed(ServerAlarmRuleEntity.CONTENT, true);
/*  98 */     this.m_content = content;
/*  99 */     return this;
  }

  public ServerAlarmRule setCreationDate(Date creationDate) {
/* 103 */     setFieldUsed(ServerAlarmRuleEntity.CREATION_DATE, true);
/* 104 */     this.m_creationDate = creationDate;
/* 105 */     return this;
  }

  public ServerAlarmRule setCreator(String creator) {
/* 109 */     setFieldUsed(ServerAlarmRuleEntity.CREATOR, true);
/* 110 */     this.m_creator = creator;
/* 111 */     return this;
  }

  public ServerAlarmRule setEndPoint(String endPoint) {
/* 115 */     setFieldUsed(ServerAlarmRuleEntity.END_POINT, true);
/* 116 */     this.m_endPoint = endPoint;
/* 117 */     return this;
  }

  public ServerAlarmRule setId(int id) {
/* 121 */     setFieldUsed(ServerAlarmRuleEntity.ID, true);
/* 122 */     this.m_id = id;

/* 124 */     setFieldUsed(ServerAlarmRuleEntity.KEY_ID, true);
/* 125 */     this.m_keyId = id;
/* 126 */     return this;
  }

  public ServerAlarmRule setKeyId(int keyId) {
/* 130 */     setFieldUsed(ServerAlarmRuleEntity.KEY_ID, true);
/* 131 */     this.m_keyId = keyId;
/* 132 */     return this;
  }

  public ServerAlarmRule setMeasurement(String measurement) {
/* 136 */     setFieldUsed(ServerAlarmRuleEntity.MEASUREMENT, true);
/* 137 */     this.m_measurement = measurement;
/* 138 */     return this;
  }

  public ServerAlarmRule setTags(String tags) {
/* 142 */     setFieldUsed(ServerAlarmRuleEntity.TAGS, true);
/* 143 */     this.m_tags = tags;
/* 144 */     return this;
  }

  public ServerAlarmRule setType(String type) {
/* 148 */     setFieldUsed(ServerAlarmRuleEntity.TYPE, true);
/* 149 */     this.m_type = type;
/* 150 */     return this;
  }

  public ServerAlarmRule setUpdatetime(Date updatetime) {
/* 154 */     setFieldUsed(ServerAlarmRuleEntity.UPDATETIME, true);
/* 155 */     this.m_updatetime = updatetime;
/* 156 */     return this;
  }


  public String toString() {
/* 161 */     StringBuilder sb = new StringBuilder(1024);

/* 163 */     sb.append("ServerAlarmRule[");
/* 164 */     sb.append("category: ").append(this.m_category);
/* 165 */     sb.append(", content: ").append(this.m_content);
/* 166 */     sb.append(", creation-date: ").append(this.m_creationDate);
/* 167 */     sb.append(", creator: ").append(this.m_creator);
/* 168 */     sb.append(", end-point: ").append(this.m_endPoint);
/* 169 */     sb.append(", id: ").append(this.m_id);
/* 170 */     sb.append(", key-id: ").append(this.m_keyId);
/* 171 */     sb.append(", measurement: ").append(this.m_measurement);
/* 172 */     sb.append(", tags: ").append(this.m_tags);
/* 173 */     sb.append(", type: ").append(this.m_type);
/* 174 */     sb.append(", updatetime: ").append(this.m_updatetime);
/* 175 */     sb.append("]");
/* 176 */     return sb.toString();
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/ServerAlarmRule.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */